using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DatabaseManager.Models
{
    ///<summary>
    ///系统操作日志
    ///</summary>
    [SugarTable("operation_logs")]
    public partial class OperationLogs
    {
           public OperationLogs(){


           }
           /// <summary>
           /// Desc:主键ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")]
           public long Id {get;set;}

           /// <summary>
           /// Desc:操作用户
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="user_name")]           
           public string UserName {get;set;}

           /// <summary>
           /// Desc:操作类型(连接测试/代码生成/文档导出等)
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="operation_type")]           
           public string OperationType {get;set;}

           /// <summary>
           /// Desc:操作内容
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="operation_content")]           
           public string OperationContent {get;set;}

           /// <summary>
           /// Desc:目标数据库
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="target_database")]           
           public string TargetDatabase {get;set;}

           /// <summary>
           /// Desc:是否成功(1:成功,0:失败)
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="success")]           
           public byte Success {get;set;}

           /// <summary>
           /// Desc:错误信息
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="error_message")]           
           public string ErrorMessage {get;set;}

           /// <summary>
           /// Desc:操作时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="operation_time")]           
           public DateTime OperationTime {get;set;}

           /// <summary>
           /// Desc:操作IP地址
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="ip_address")]           
           public string IpAddress {get;set;}

    }
}
